﻿<%@ Page Title="导游信息 - 金牌导游网" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="GuiderList.aspx.cs" Inherits="DaoYou.Web._GuiderList" %>

<%@ Register Src="~/Controller/BannerSearch.ascx" TagName="BannerSearch" TagPrefix="uc1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- START small_banner -->
    <section class="small_banner">
        <div class="center-wrap">
            <p class="page-banner-heading">
                导游成员</p>
            <uc1:BannerSearch runat="server" ID="BannerSearch1" />
            <!-- END banner-search -->
            <div class="breadcrumbs">
                <a href="<%= Page.ResolveUrl("~/") %>">网站首页</a> &rarr; <span class="current_crumb">查询导游</span>
            </div>
            <!-- END breadcrumbs -->
        </div>
        <!-- END center-wrap -->
        <div class="shadow top">
        </div>
        <div class="shadow bottom">
        </div>
        <div class="tt-overlay">
        </div>
    </section>
    <!-- START content-container -->
    <section id="content-container" class="clearfix">
        <div id="main-wrap" class="clearfix">
            <% if (this.GuideList != null && this.GuideList.Count > 0)
               {
                   foreach (RenChangYou.Model.DY_GuiderInfo f in this.GuideList)
                   {
                       RenChangYou.Model.DY_User model = this.GetUserInfo(f.UserName);
                       string sex = "未知";
                       if (model.Sex == "M")
                           sex = "男";
                       else if (model.Sex == "F")
                           sex = "女";
                       string birthday = "未知";
                       if (model.Birthday.HasValue)
                           birthday = model.Birthday.Value.ToString("yyyy年MM月");
            %>
            <div class="member-wrap clearfix">
                <div class="member-contact">
                    <p class="member-name"><a href="Detail.aspx?username=<%=f.UserName %>"><%= model.FullName %></a></p>
                    <p class="member-title">性别：<%=sex%>，出生年月：<%=birthday %></p>
                    <ul class="member-list">
                        <li><%= model.Province %></li>
                        <li><%= model.City %></li>
                        <li><%= model.District %></li>
                    </ul>
                </div>
                <!-- END member-contact -->
                <div class="member-bio">
                    <p>
                        <%= this.GetUserShortIntroduction(f.UserName)%></p>
                </div>
                <!-- END member-bio -->
                <div class="member-photo img-frame member-frame">
                    <a href="Detail.aspx?username=<%=f.UserName %>">
                        <img src="../upload/<%= model.UserName %>/<%= model.HeadImageName %>" alt="<%= model.FullName %>" /></a></div>
            </div>
            <!-- END member-wrap -->
            <%}
               } %>
        </div>
        <!-- END main-wrap -->
    </section>
</asp:Content>
